#pragma once
#include "ComboExtend.h"

class CPosSpecify :
	public WindowImplBase
{
public:
	CPosSpecify();
	virtual ~CPosSpecify();

	LPCTSTR GetWindowClassName() const { return _T("CPosSpecify"); }
	virtual CDuiString GetSkinFile() { return _T("PosSpeci.xml"); }
	virtual CDuiString GetSkinFolder() { return  _T("skin"); }
	virtual LRESULT ResponseDefaultKeyEvent(WPARAM wParam);
	virtual LRESULT OnNcActivate(UINT /*uMsg*/, WPARAM wParam, LPARAM /*lParam*/, BOOL& bHandled);
	virtual void InitWindow();
	virtual CControlUI* CreateControl(LPCTSTR pstrClass);

	SYSTEMTIME& GetBeginDate();
	SYSTEMTIME& GetEndDate();
	std::wstring& GetArea();
	std::wstring& GetPager();

	DUI_DECLARE_MESSAGE_MAP()
	void OnOKBtnClick(TNotifyUI& msg);
	void OnCboAreaChange(TNotifyUI& msg);
private:
	CComboExUI*		m_pCboPager = nullptr;
	CComboExUI*		m_pCboArea = nullptr;
	CLabelUI*		m_pLabTitle = nullptr;
	SYSTEMTIME		m_dtBebin;
	SYSTEMTIME		m_dtEnd;
	std::wstring 		m_strArea;
	std::wstring 		m_strPager;
};

